﻿CREATE FUNCTION [dbo].[Config_DomainContext]()RETURNS varchar(128) WITH SCHEMABINDING AS BEGIN RETURN 
CASE 
		 WHEN system_user IN ('AFC-HOME\AFC-BANK$','AFC-HOME\AFCWEB$') THEN 'DC=AFCHOME,DC=NET'
		 WHEN system_user = 'AFCBANK\Dimon' THEN 'DC=DEVELOPMENT,DC=AFCHOME,DC=NET'
		 ELSE 'DC=AFCHOME,DC=NET'
END

END




